home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / comp / callhidd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  629 b   |  22 lines

  1. /*
  2.                             C A L L H I D D E N . C
  3.  
  4.     Hidden functions are called by their negative function offset
  5.     to be patched up at code-generation time
  6. */
  7.  
  8. #include "iccomp.h"
  9.  
  10. void callhidden(register int fun, ESTRUC_ *rarg)
  11. {
  12.     hidden_called = 1;                      /* hidden function calls */
  13.  
  14.     hidden[fun].this = 1;                   /* this hidden function is called */
  15.  
  16.     gencode(rarg, op_call, -fun);           /* dummy, to be address of hidden */
  17.  
  18.     gencode(rarg, op_asp, hidden[fun].nargs);   /* clear pushed arguments */
  19.  
  20.     set_type(rarg, hidden[fun].type);       /* set the returntype */
  21. }
  22.